import React from "react";
import ReactDOM from "react-dom/client";
// 样式 初始化一般放到最前面
import "reset-css";
// UI组件样式
//全局样式
import "@/assets/style/global.scss";

// 特殊组件样式
import App from "./App.tsx";
//TODO：路由组件
// import BaseRouter from './router/index.tsx'
import { BrowserRouter } from "react-router-dom";

//  redux :状态管理引入
import { Provider } from "react-redux";
import store from './store/index.ts'
ReactDOM.createRoot(document.getElementById("root")!).render(
  <Provider store={store}>
    <React.StrictMode>
      <BrowserRouter>
        <App />
      </BrowserRouter>
    </React.StrictMode>
  </Provider>
);

// ReactDOM.createRoot(document.getElementById('root')!).render(
//   <React.StrictMode>
//     <BrowserRouter>
//       <App />
//     </BrowserRouter>
//   </React.StrictMode>,
// )
